import request from '@/utils/request'

export function apiRouteInfoQuery(paramDataInfo) {
    return request({
        url: '/ywu/api/api.route.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function addApiRouteInfoQuery(paramDataInfo) {
    return request({
        url: '/ywu/api/router.add.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function updateApiRouteInfoQuery(paramDataInfo) {
    return request({
        url: '/ywu/api/router.update.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function deleteApiRouteInfoQuery(paramDataInfo) {
    return request({
        url: '/ywu/api/router.delete.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function apiRouteRedisCacheInfo(paramDataInfo) {
    return request({
        url: '/ywu/api/api.route.redis.cache.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function apiRouteRefreshCacheInfo() {
    return request({
        url: '/ywu/api/router.refresh.info',
        method: 'get'
    })
}

export function apiRouteUpdateShareInfo(paramDataInfo) {
    return request({
        url: '/ywu/api/api.update.share.api.info',
        method: 'post',
        data: paramDataInfo
    })
}